﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class StartLogin : MonoBehaviour {
    private void Awake()
    {
        GlobalHelper.UIMGR.UI<Login>();
        GlobalHelper.UIMGR.UI<SetUp>();
        if (null == GlobalHelper.backGround)//背景音乐
        {
            GameObject obj = new GameObject("Audio");
            DontDestroyOnLoad(obj);
            obj.AddComponent<BackGround>();
        }
        if (0 == ReaderInfo.Scorelist.Count)
        {
            ReaderInfo.Scorelist = ReaderInfo.ParseInfo<ScoreInfo>("Json/lily");//读取策划表
        }
        Destroy(gameObject);
    }
}